package day_2022_9_to_12.Day;

/**
 * @author haomin
 * @date 2022/10/27 16:09
 **/
public class Day54_2_Num1822_ArraySign {
    class Solution {
        public int arraySign(int[] nums) {
            int sizeFu = 0;
            for(int i : nums){
                if(i == 0) return 0;
                if(i < 0) sizeFu++;
            }
            return sizeFu % 2 == 0 ? 1 : -1;
        }
    }
}